runOnStartup(async runtime => {
    cc_Game.addEventListener("minerTick", (e) => {
    })
    cc_Game.addEventListener("minerInit", (e) => {
        MinerVernierSpwn.spwn()
    })
});
globalThis.MinerVernierSpwn = {
    spwn: function () {

        if (runtime.objects.point_minerGamePlaye.getFirstInstance() == null) return
        MinerVernierSpwn.setVernier = runtime.objects.Vernier?.createInstance("Point", 0, 0, true)
        MinerVernierSpwn.setVernier.isVisible=false
        // 根据关卡来设定浮标的位置
        var _curday = runtime.globalVars.CurDay
        if (_curday >= 1 && _curday < 5) {
            MinerVernierSpwn.setVernier.x = 937
            MinerVernierSpwn.setVernier.y = 678
        }
    }
}
export default MinerVernierSpwn